import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// ✅ 先导入 router
import router from './router'

// 🔧 创建 app 实例
const app = createApp(App)

// ✅ 按顺序使用插件
app.use(ElementPlus)
app.use(createPinia())
app.use(router) // 确保 router 已导入后再 use

// 🚀 挂载应用
app.mount('#app')
